import myRequest from '@/api/myRequest'

export function myLogin(data) {
    return myRequest({
        url: '/TradeSystem/api/operator/check',
        method: 'post',
        data
    })
}

export function myRegister(data) {//开户
    return myRequest({
        url: '/TradeSystem/api/user/register',
        method: 'post',
        data
    })
}

export function userSearch(data) {//查询
    return myRequest({
        url: '/TradeSystem/api/user/search',
        method: 'post',
        data
    })
}

export function userChange(data) {//修改
    return myRequest({
        url: '/TradeSystem/api/user/change',
        method: 'post',
        data
    })
}

export function userDel(data) {//删除
    return myRequest({
        url: '/TradeSystem/api/user/del',
        method: 'post',
        data
    })
}

export function userList(data) {//获取用户列表
    return myRequest({
        url: '/TradeSystem/api/user/list',
        method: 'post',
        data
    })
}